@import '~reset-css/reset.css';

html, body {
  width: 100%;
  height: 100%;
}

body {
  font-family: "PingFang-SC-Regular", "Microsoft Yahei", "SimSun", "SimHei", "YouYuan", sans-serif;
  position: relative;
  overflow: hidden;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  background-color: #efefef;
}

#wrapper {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  white-space: nowrap;

  & > .player {
    position: relative;
    width: 350px;
    height: 350px;
    border: 1px solid lightgray;
    display: inline-block;
    vertical-align: middle;
    .mask {
      position: absolute;
      left: 0;
      top: 0;
      width: 100%;
      height: 100%;
      line-height: 350px;
      text-align: center;
      font-size: 30px;
      background-color: rgba(0, 0, 0, 0.2);
    }

    &.player1 {
      & > .msg-panel {
        display: none;
      }
      & > .wait {
        color: #000;
        text-shadow: 0 1px 5px #fff;
        z-index: 2;
      }
      & > .ready {
        color: #000;
        text-shadow: 0 1px 5px #fff;
        z-index: 2;
        display: none;
      }
      &.ready {
        & > .wait {
          display: none;
        }
        & > .ready {
          display: block;
        }
      }
      &.run {
        & > .wait {
          display: none;
        }
        & > .ready {
          display: none;
        }
      }
    }

    &.player2 {
      margin-left: 20px;
      & > .ready {
        display: none;
      }
      &.ready {
        & > .wait {
          display: none;
        }
        & > .ready {
          display: block;
        }
      }
      &.run {
        & > .wait {
          display: none;
        }
        & > .ready {
          display: none;
        }
      }
    }

    & > .over {
      display: none;
      color: lightcoral;
      text-shadow: 0 1px 5px #fff;
      z-index: 2;
    }

    &.over {
      & > .over {
        display: block;
      }
    }
  }

  &.run {
    & > .player {
      &.player1 {
      }
      &.player2 {
        & > .wait {
          display: none;
        }
        & > .ready {
          display: none;
        }
      }
    }
  }

  &.single {
    & > .player2 {
      display: none;
    }
  }
  &.multi {
    & > .player1 {
      & > .msg-panel {
        display: block;
      }
    }
    & > .player2 {
      display: inline-block;
    }
  }
}

#mode-select {
  font-size: 18px;
  position: absolute;
  top: -80px;
  line-height: 25px;
  left: 0;
}

.detail {
  position: absolute;
  top: -40px;
  line-height: 30px;
  width: 100%;
  left: 0;
  font-size: 0;

  .score {
    font-size: 20px;
    border-right: 1px solid #000;
    padding-right: 10px;
    & > i {
      color: #4caf50;
      display: inline-block;
      width: 30px;
      text-align: center;
    }
  }

  .efficiency {
    font-size: 20px;
    padding-left: 10px;
    display: inline-block;
    & > i {
      color: lightcoral;
      display: inline-block;
      width: 60px;
      text-align: center;
      &.rock {
        color: #4caf50;
      }
    }
  }
}

.stage {
  width: 100%;
  height: 100%;
}
